Scripting > CxHmiFms > CxFmsDashboardCtrl Object > CxFmsDashboardCtrl Example

CxFmsDashboardCtrl Example

Use the CxFmsDashboardCtrl object to display and manipulate an ActiveX CygNet FMS Dashboard Control in a CygNet Studio screen environment.

CygNet FMS Dashboard Control

To see an example FMS Dashboard control implemented in a pre-designed screen, open the FMS Dashboard Ctrl.csf file in the CygNet\Clients\CStudio\Screens\Examples folder.

CygNet Studio Screen Script: FMS Dashboard Ctrl.csf

Sub btnApply_EventClick()

Dim This : Set This = btnApply

FmsDashboard.SessionNodeTag = editSessionNode.Text

FmsDashboard.SessionBeginDate = editStartDate.Text

FmsDashboard.SessionEndDate = editEndDate.Text

FmsDashboard.PITDateTime = editPIT.Text

FmsDashboard.UsePIT = checkUsePIT.Check

FmsDashboard.Apply True

End Sub

 

Sub btnCancel_EventClick()

Dim This : Set This = btnCancel

FmsDashboard.Cancel

End Sub

 

Sub checkUsePIT_EventChange()

Dim This : Set This = checkUsePIT

FmsDashboard.UsePIT = this.Check

editPIT.Enable this.Check

End Sub

 

Sub TheView_EventInitialize()

Dim This : Set This = TheView

editSessionNode.Text = FmsDashboard.SessionNodeTag

editStartDate.Text = FmsDashboard.SessionBeginDate

editEndDate.Text = FmsDashboard.SessionEndDate

 

checkUsePIT.Check = FmsDashboard.UsePIT

editPIT.Text = FmsDashboard.PITDateTime

editPIT.Enable = FmsDashboard.UsePIT

End Sub

Back to top

Let us know how we can improve this topic.

CygNet at weatherford.com

© 2020 Weatherford. All rights reserved.